package com.itcast.homework01.work03;

/*
请定义一个类并采用饿汉式将其单例化
*/
public class work03 {
    //私有化无参构造
    private work03() {
    }

    //创建对象确保只创建一个并且不能被改变
    private static work03 work03 = new work03();

    //返回对象
    public static com.itcast.homework01.work03.work03 getWork03() {
        return work03;
    }
}
